package cn.study.consumer.controller;

import cn.animal.api.clients.UserClient;
import cn.animal.common.entity.po.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/consumer")
public class ConsumerController {

        @Autowired
        private UserClient userClient;

        @GetMapping("/openfeign/test")
        Result<String> openFeignTest() {
            return Result.success(userClient.test());
        }

}
